package com.briup.myblog.utils;

import java.util.Map;

public class UserInfoUtil {

    private static ThreadLocal<Map<String,Object>> threadLocal = new ThreadLocal<>();

    public static void setUserInfo(Map<String,Object> map){
        threadLocal.set(map);
    }

    public static Map<String,Object> getUserInfo(){
        return threadLocal.get();
    }

}
